#include"mystdio.h"


int main()
{
    _FILE *fp=_fopen("log.txt","a");
    if(fp==NULL)
    {
        perror("_fopen");
        exit(1);
    }

    const char *msg="hello linux\n";
    int cnt=5;
    while(cnt)
    {
        _fwrite(msg,strlen(msg),fp);
        sleep(1);
        cnt--;
    }

    _fclose(fp);
    return 0;
}
